-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle OS Interruptions #217
Conversation
It is possible when the socket is being read we can receive an OS Interrupt. As this isn't a hard error, in this case retry instead of shutting down the ttrpc server Signed-off-by: James Sturtevant <[email protected]>
30e5379
to
693f4c5
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #217 +/- ##
==========================================
- Coverage 24.35% 24.33% -0.03%
==========================================
Files 16 16
Lines 2652 2655 +3
==========================================
Hits 646 646
- Misses 2006 2009 +3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @jsturtevant
I'm going to test this out on my OSX machine and report back. |
It took rebuilding the tree of dependencies, but it seems to be working on my OSX arm64 machine. |
@devigned Thanks for testing it out! |
@Tim-Zhang @wllenyj can we merge this? |
When running on MacOs we found a bug:
This will retry the connection. I don't have a Mac to test this on but wanted to open it up for feedback incase others are seeing the error